// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
  const wxContext = cloud.getWXContext()
  const db = cloud.database({
    env: 'charmword-yun-releases'
  })
  const dataList =  db.collection('ciku').doc('294136c35f4090ab0013fb0820dff475').get({
    success: function(res) {
      console.log("查词库目录列表成功")
    }
  })
  return dataList;
}